<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/4/30
  Time: 0:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>修改个人信息</title>
</head>
<body>

<h3>修改个人信息</h3>
<form action="userservlet?method=updateStudents" method="post">
    <input type="hidden" name="id" value="${user.id}">
    <table>
        <tr>
            <td>编号：</td>
            <td>
                <input type="text" name="id" value="${user.id}" readonly="readonly"/>
            </td>
        </tr>
        <tr>
            <td>姓名：</td>
            <td>
                <input type="text" name="stuname" value="${user.stuname}"/>
            </td>
        </tr>
        <tr>
            <td>学号：</td>
            <td>
                <input type="text" name="stuno" value="${user.stuno}" readonly="readonly"/>
            </td>
        </tr>
        <tr>
            <td>密码：</td>
            <td>
                <input type="password" name="pwd" value="${user.pwd}"/>
            </td>
        </tr>
        <tr>
            <td>身份证号：</td>
            <td>
                <input type="text" name="idcard" value="${user.idcard}"/>
            </td>
        </tr>
        <tr>
            <td>入学时间：</td>
            <td>
                <input type="date" name="startdate" value="<fmt:formatDate value="${user.startdate}" pattern="yyyy-MM-dd"/>"/>
            </td>
        </tr>
        <tr>
            <td>权限：</td>
            <td>
                <input type="text" name="status" value="${user.status}" readonly="readonly"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="保存"/>
                <input type="reset" value="重置"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>

